<template>
  <div class="section">
    <div class="header">
      <h2 class="title">{{ title }}</h2>
    </div>
    <div class="content">
      <slot>
        <h3>ddddd~~~~</h3>
      </slot>
    </div>
    <div class="footer">
      <span class="more">{{ moreText }}</span>
      <van-icon name="arrow"></van-icon>
    </div>
  </div>
</template>

<script setup>
defineProps({
  title: {
    type: String,
    default: '',
  },
  moreText: {
    type: String,
    default: '',
  },
})
</script>

<style lang="scss" scoped>
.section {
  padding: 5px;
  .header {
    .title {
      padding: 5px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
  }
  .content {
    margin-top: 5px;
    padding: 5px;
    border-radius: 5px;
    background-color: #f5f5f5;
  }
  .footer {
    display: flex;
    color: var(--primary-color);
    margin-top: 5px;
    justify-content: flex-end;
  }
}
</style>
